<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="u" uri="/iuie-tag"%>
<%@ taglib prefix="sys" uri="/sys-tag" %>
<%@ taglib prefix="lui" tagdir="/WEB-INF/tags" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>打包markdown文档</title>
</head>
<lui:context/>
<u:View basePath="/res-datum/blog" userJS="mdPack" delayLoadJs="false">
<body>
<lui:dialogBody>
	<form id="findMdBlogFrm" class='m-cust'>
   		<!-- 水平排列 -->
		<div class="form-horizontal">
			<div class="form-group m-narrow">
				<div class="col-md-3 col-sm-3">
					<div class="input-group"> 
						<label for="startTime" class="input-group-addon">时间</label>
						<lui:datepicker name="startTime" dateType="date" id="startTime" endDate="${u:getCurrTimeChangeNthDayDate(0,'yyyy-MM-dd HH:mm:ss') }" 
							startDate="${u:getCurrTimeChangeNthDayDate(-7,'yyyy-MM-dd HH:mm:ss') }"/>
					</div>
				</div>
				<div class="col-md-3 col-sm-3">
					<div class="input-group"> 
						<label for="endTime" class="input-group-addon">至</label>
						<lui:datepicker name="endTime" dateType="date" id="endTime" endDate="${u:getCurrTimeChangeNthDayDate(0,'yyyy-MM-dd HH:mm:ss') }" 
							startDate="${u:getCurrTimeChangeNthDayDate(-7,'yyyy-MM-dd HH:mm:ss') }"/>
					</div>
				</div>
			</div>
		</div>
		<div class="form-horizontal">
			<div class="form-group">
				<div class="col-md-12 col-sm-12">
					<div class="btn-group" id="buttonGro">
						<button type="button" class="btn btn-primary" onclick="MDPackPage.queryByCondition()"><i class='fa fa-fw fa-search'></i>查询</button>
						<button type="button" class="btn btn-info" onclick="MDPackPage.pack()"><i class='fa fa-fw fa-plus'></i>打包</button>
						<button type="reset" class="btn btn-default"><i class='fa fa-fw fa-repeat'></i>重置</button>
					</div>
				</div>
			</div>
		</div>
		<u:dataSet id="msgSet" idField="userId">
			<u:dataField display="ID" name="msgId" sort="true" visiable="false"/>
			<u:dataField display="标题" name="msgTitle" align="left" width="640px"/>
			<u:dataField display="分类" name="msgCategory" align="left" width="340px"/>
			<u:dataField display="发起人" name="creatorName" width="80px" align="center"/>
			<u:dataField display="更新时间" name="updateTime" width="140px" align="center" format="yyyy-MM-dd HH:mm:ss" formatType="date"/>
			<u:dataField display="消息详情" name="msgDetail" width="180px" align="left" visiable="false" />
			<%-- <u:dataField name="oper" dropView="dropView_oper" display="操作" width="120px"/> --%>
		</u:dataSet>
		<!-- 获取最新消息列表ajax -->
		<lui:ajax id="findLatestMsgAjax" url="${ctx }/datum/blog/find/latestMdBlog" formQuery="#findMdBlogFrm"/>
		<lui:datatable id="msgDatatable" ajax="findLatestMsgAjax" sortable="true" pagination="msgPagination" dataset="msgSet" checkable="false"
		    multiple="false" cutLine="true"/>
		<lui:pagination datatable="msgDatatable" id="msgPagination" pageSize="5" pageChoice="5" showPageChoice="false"/>
	</form>
</lui:dialogBody>
<lui:dialogFooter>
   <button class="btn btn-default m-btn" type="button" data-dismiss="dialog-box">关闭</button>
</lui:dialogFooter>
</body>
</u:View>
</html>